<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
    <script src="https://cdn.staticfile.org/vue/2.4.2/vue.min.js"></script>
</head>

<body>
    <div id="app">
        <p v-if="type=='a'">a</p>
        <p v-if="type=='b'">b</p>
          <p v-if="type=='c'">c</p>
          <p v-else>sdcds</p>
      <p v-show='ok'>
 hgmhgnhgnhg
      </p>
  <button @click='tolloge()'>隐藏/显示</button>
    </div>
    <script>
        var vm=new Vue({
           el:'#app',
           data:{
               ok:true,
            type:'c',
            },
           methods:{
               tolloge(){
                   this.ok=!this.ok;
               }
           }
        });
    </script>
</body>

</html>